<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播示例</title>
    <!-- 
       相对限制绝对
          父容器设置为相对定位
          子元素设置为绝对定位
          
    -->
    <style>
        /* 清除默认样式 */
        *{padding: 0;margin: 0;}
        ul{list-style: none;}

        .g-container{
            width: 400px;
            height: 200px;
            background-color: pink;
            position: relative;
        }
        .g-container img{
            width: 400px;
            height: 200px;
        }

        .g-container ul{
            position: absolute;
            right: 15px;
            bottom: 5px;
        }

        .g-container ul li{
            /* 行块元素： 即有行内元素特点又有块元素特点 */
            display: inline-block;
            width: 20px;
            height: 20px;
            background-color: blueviolet;
            color: white;
            text-align: center;
            line-height: 20px;
            border-radius: 50%;
            font-size: 14px;
        }



    </style>
</head>
<body>
    <div class="g-container">
        <img src="../img/22.jpg" alt="22">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
        </ul>
    </div>
</body>
</html>